package com.woniuxy.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Leimin
 * @date 2022/04/26 19:21
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResponseEntity <T>{
    private int code;
    private String message;
    private T data;
    public static final ResponseEntity SUCCESS=new ResponseEntity(200,"成功",null);
    public static final ResponseEntity Fail=new ResponseEntity(500,"失败",null);
}

